//
//  Zone.m
//  07-homeWork-MRC
//
//  Created by 402030900@qq.com on 16/7/12.
//  Copyright © 2016年 402030900@qq.com. All rights reserved.
//

#import "Zone.h"

@implementation Zone
-(void)dealloc{
    [_name release];
    [super dealloc];
}
-(instancetype)initWithName:(NSString *)name{
    if (self) {
        self = [super init];
        _name = name;
    }
    return self;
}
+(instancetype)zoneWithName:(NSString *)name{
    return [[[self alloc]initWithName:name] autorelease];
}
-(instancetype)initWithName:(NSString *)name Number:(NSString *)number{
    if (self) {
        self = [super init];
        _name = name;
        _number = number;
    }
    return self;
}
+(instancetype)zoneWithName:(NSString *)name Number:(NSString *)number{
    return [[[self alloc]initWithName:name Number:number] autorelease];
}
-(instancetype)initWithTempCity:(TempCity *)tempCity{
    return [[self initWithName:tempCity.name Number:tempCity.number] autorelease];
}
+(instancetype)zoneWithTempCity:(TempCity *)tempCity{
    return [[[self alloc]initWithName:tempCity.name Number:tempCity.number] autorelease];
}
    

@end
